<div class="devui-demo-container" dAnchorBox dAnchorHashSupport [view]="{ top: 180, bottom: 0 }">
  <d-demo-nav [navItems]="navItems"></d-demo-nav>
  <div class="devui-demo-example" [dAnchor]="'basic-usage'">
    <div class="devui-demo-title">{{ 'components.mention.basicDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-mention-basic" [sourceData]="basicSource">
      <d-mention-basic demo></d-mention-basic>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'async-usage'">
    <div class="devui-demo-title">{{ 'components.mention.asyncDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-mention-async" [sourceData]="asyncSource">
      <d-mention-async demo></d-mention-async>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'custom-prefix'">
    <div class="devui-demo-title">{{ 'components.mention.prefixDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-mention-prefix" [sourceData]="prefixSource">
      <d-mention-prefix demo></d-mention-prefix>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'custom-template'">
    <div class="devui-demo-title">{{ 'components.mention.customDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-mention-custom" [sourceData]="customSource">
      <d-mention-custom demo></d-mention-custom>
    </d-codebox>
  </div>
</div>
